package com.zmzncs.shop.module.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zmzncs.shop.common.pojo.AuthorizeVO;
import com.zmzncs.shop.module.shop.pojo.shopmanager.*;

import java.util.Map;

/**
 * <p>
 * 商户-管理员 服务类
 * </p>
 *
 * @author 高博文
 * @since 2021-05-25
 */
public interface ShopManagerService extends IService<ShopManager> {

    /** 分页 */
    IPage<ShopManagerDTO> page(ShopManagerSearchForm form);

    /** 添加 */
    void add(ShopManagerAddForm form);

    /** 删除 */
    void delete(Long id);

    /** 修改 */
    void update(ShopManagerUpdateForm form);

    /** 详情 */
    ShopManagerDTO getById(Long id);


    /**发送短信验证码*/
    Map<String, Object> sendVerifyCode(String phoneNumber);
    /**登录*/
    AuthorizeVO login(LoginForm form);
    /**微信授权*/
    ShopManagerDTO authorize(WeiXinAuthorizeForm weiXinAuthorizeForm);

}
